use ztask::task::*;

fn main() {
    let mut root = Repeat::new(
        vec![
            Lock::new(
                AfterTimes::new(9),
                Log::new("Fooo"),
            ) as Box<dyn ITask>,
        ],
        AfterTimes::new(20)
    );

    let mut i = 0;

    while !root.is_finished() {
        println!("Current Frame {}", i);
        root.step();

        i += 1;
    }
}
